package com.jisheng.xb.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.jisheng.xb.entity.Article;

public interface ArticleMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Article record);

    int insertSelective(Article record);

    Article selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Article record);

    int updateByPrimaryKeyWithBLOBs(Article record);

    int updateByPrimaryKey(Article record);
    
    List<Article> selectAll();
    
    List<Article> selectByUserId(@Param("userId") Integer userId);
    
    List<Article> searchByKeys(@Param("kewWord")String kewWord);
}